<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output encoding="windows-1250" indent="no" method="html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>

  <xsl:variable name="lang" select="/DPOutput/@lang"/>
  <xsl:variable name="dict" select="document('dictionary.xml')/Translation"/>
   
  <xsl:template match="DPOutput">
    <div>
    	<script type="text/javascript">
    	  var oVlds = new Vlds('oVlds', '<xsl:value-of select="/DPOutput/@repository"/>', '<xsl:value-of select="/DPOutput/@model"/>', '<xsl:value-of select="/DPOutput/@lang"/>');
    	  oVlds.create();
    	</script>
    </div>
  </xsl:template>
  
  <xsl:template name="title"><xsl:value-of select="$dict/Text[@tid='title']/Value[@lang=$lang]"/></xsl:template>      

</xsl:stylesheet>